package com.rw.utility;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class MyAuthenticator extends Authenticator {
    
    private String username;
    
    private String password;
    
    public MyAuthenticator(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public PasswordAuthentication getPasswordAuthentication() {    
        return new PasswordAuthentication(this.username, this.password);

    }
    
}